#include<iostream>
using namespace std;
//reddit, 4chan, 9gag, memecenter//ABCDF//
int main(){
	/*
	int seconds;
int minutes;
int hours;
int input;
cout<< "enter the total number of seconds" << endl;
cin>> input;
hours= input / 3600;
minutes = (input % (hours * 3600)) / 60;
seconds = (input % (hours * 3600)) % (minutes * 60); 
int x = input%hours;
cout<< "Hours" << endl;
cout<< hours << endl;
cout<< "Minutes" << endl;
cout<< minutes <<  endl;
cout<< "Seconds" << endl;
cout<< seconds << endl;
	system("pause");
		return 0;
		*/
	// OR = ||, AND = &&, Not Equal to = '!=' <=  >=    0-3 = '-', 4-7 = ' ', 8-9 = '+'

	/*
		if(im happy) {
		 I Sing
		}
		if(im 10 years old) {
		 I cry 
		}
		else(condition) {

		}
	*/

	int input;
	cout << "Did you fail or succeed, What is your grade?" << endl;
	cin >> input;
	if(input <= 99 && input >= 98) {
		cout << "A+" << endl;
	}
	else if(input <= 93 && input > 90) {
		cout << "A-" << endl;
	}
	if(input <= 83 && input > 79) {
		cout << "B-" << endl;
	}
	if(input <= 59 && input >= 40) {
		cout << "F+" << endl;
	}
	if(input <= 40 && input >= 20) {
		cout << "F" << endl;
	}
		if(input <= 19 && input >= 1) {
		cout << "F-" << endl;
	}
	if(input < 98 && input > 93) {
		cout << "A" << endl;
	}
	if(input < 88 && input >= 84) {
		cout << "B" << endl;
	}
	if(input <= 90 && input > 97) {
		cout << "B+" << endl;
	}
	if(input <= 73 && input > 69) {
		cout << "C-" << endl;
	}
	if(input < 78 && input >= 74) {
		cout << "C" << endl;
	}
	if(input <= 78 && input >= 79) {
		cout << "C+" << endl;
	}
	if(input < 78 && input >= 64) {
		cout << "D" << endl;
	}
	if(input <= 69 && input >= 68) {
		cout << "D+" << endl;
	}
	if(input <= 63 && input >= 60) {
		cout << "D-" << endl;
	}
		system("pause");
		return 0;
}//


//10%3 == remainder(10/3) A A+ A- b b-